package com.ruoyi.project.tugboat.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.tugboat.mapper.CPointMapper;
import com.ruoyi.project.tugboat.domain.CPoint;
import com.ruoyi.project.tugboat.service.ICPointService;

/**
 * 测点Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-14
 */
@Service
public class CPointServiceImpl implements ICPointService 
{
    @Autowired
    private CPointMapper cPointMapper;

    /**
     * 查询测点
     * 
     * @param pointId 测点主键
     * @return 测点
     */
    @Override
    public CPoint selectCPointByPointId(Long pointId)
    {
        return cPointMapper.selectCPointByPointId(pointId);
    }

    /**
     * 查询测点列表
     * 
     * @param cPoint 测点
     * @return 测点
     */
    @Override
    public List<CPoint> selectCPointList(CPoint cPoint)
    {
        return cPointMapper.selectCPointList(cPoint);
    }

    /**
     * 新增测点
     * 
     * @param cPoint 测点
     * @return 结果
     */
    @Override
    public int insertCPoint(CPoint cPoint)
    {
        return cPointMapper.insertCPoint(cPoint);
    }

    /**
     * 修改测点
     * 
     * @param cPoint 测点
     * @return 结果
     */
    @Override
    public int updateCPoint(CPoint cPoint)
    {
        return cPointMapper.updateCPoint(cPoint);
    }

    /**
     * 批量删除测点
     * 
     * @param pointIds 需要删除的测点主键
     * @return 结果
     */
    @Override
    public int deleteCPointByPointIds(Long[] pointIds)
    {
        return cPointMapper.deleteCPointByPointIds(pointIds);
    }

    /**
     * 删除测点信息
     * 
     * @param pointId 测点主键
     * @return 结果
     */
    @Override
    public int deleteCPointByPointId(Long pointId)
    {
        return cPointMapper.deleteCPointByPointId(pointId);
    }
}
